<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>单次列车信息</title>
    <link rel="stylesheet" href="../../../css/iconfont/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="../../../css/aui.css" />
    <link rel="stylesheet" href="../../../css/index/train/train_message.css"/>
</head>
<body style="cursor: pointer">
    <header class="aui-bar aui-bar-nav" style="background: #3CB0D6;" id="header">
        <a class="aui-pull-left aui-btn" onclick="closeWin()">
            <span class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title">
            <!-- <span class="start_date">02月10日</span> -->
            <span class="train_number">K610</span>
        </div>
    </header>
</body>
<script src="../../../script/aui/api.js" ></script>
<script src="../../../script/aui/aui-dialog.js" ></script>
<script src="../../../script/aui/aui-toast.js" ></script>
<script src="../../../script/extend/jquery-3.3.1.min.js"></script>
<script src="../../../script/config.js"></script>
<script src="../../../script/common.js"></script>
<script>
    apiready = function() {
        api.parseTapmode();

        //step1:传参
        let train_code      = api.pageParam.train_code;
        let start_station   = api.pageParam.start_station;
        let end_station     = api.pageParam.end_station;
        let start_date      = api.pageParam.start_date;
        let selected_staff  = api.pageParam.selected_staff;


        //step2:赋值
        $('.train_number').text(train_code);
        let date = start_date.split('-');
        $('.start_date').text(date[1]+'月'+date[2]+'日');

        //step3:头部
        initHeader('train_message',{
            train_code      : train_code,
            start_date      : start_date,
            start_station   : start_station,
            end_station     : end_station,
            selected_staff  : selected_staff
        });
    };

</script>
</html>
